import {LogBox} from 'react-native';
import {name as appName} from './app.json';
import {startApp} from './src/core-native';
import {App} from './src/modules/AppModule';

LogBox.ignoreAllLogs();

startApp({
  registeredAppName: appName,
  componentType: App,
  errorListener: {
    onError: err => {
      console.log('onError捕获: ', err);
    },
  },
  beforeRendering: () => {
    return new Promise(resolve => {
      setTimeout(() => {
        console.log('模拟加载资源文件');
        resolve();
      }, 0);
    });
  },
});
